Skip to content

Conversation

rachelks
Copy link
Member

@rachelks rachelks commented Nov 10, 2026 •

Summary

Adds album cover artwork to Discover, My Crate and album detail pages using Cover Art Archive and the existing MusicBrainz release-group IDs.

Changes

  • Exposed the MusicBrainz release-group ID through GraphQL for search results, album details and My Crate.
  • Added a shared AlbumCover component with responsive image sizes and a vinyl placeholder fallback.
  • Adjusted album card sizing for single-column layouts.
  • Added an artwork attribution link to the corresponding MusicBrainz release-group page when a cover loads successfully.
  • Updated the README, data model documentation and UI specification, including My Crate and updated screenshots.
  • Added lazy loading for album cards and eager loading with high fetch priority for album detail artwork.
  • Improved album detail loading states to reduce layout shifts.

Testing

  • 181 client tests passed.
  • Formatting, lint, typecheck and production build passed.
  • JavaScript bundle budget passed.
  • Manually checked artwork, fallback behavior, responsive layouts, dark/light themes and attribution links.
  • Ran Lighthouse on Discover and album detail pages (desktop and mobile), including image checks and layout shift improvements. Results and remaining optimization opportunities are documented in Lighthouse results.
  • PostgreSQL integration tests were skipped locally because TEST_DATABASE_URL was not set. These should run in CI.

Closes #23

@rachelks rachelks requested a review from a team as a code owner November 10, 2026 19:37
Copy link
Member

@robertky robertky left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The implementation looks good: the shared cover component, responsive image sources, lazy loading, explicit dimensions, fallback behavior and attribution are all covered. CI also passes, including the PostgreSQL integration tests.

Before approval, could you run the Lighthouse image checks and add the result to the PR? Issue #23 lists this as an acceptance criterion. The bundle budget is documented, but I couldn’t find Lighthouse results. Once that is recorded, this looks ready to approve.

@rachelks
Copy link
Member Author

Thanks for the feedback! I've now run Lighthouse on both Discover and Album Detail, on desktop and mobile. The tests helped identify layout shifts on the album detail page, which I've addressed. CLS is now 0 on both desktop and mobile, and the JavaScript bundle is still within budget.

I've documented the results and remaining image optimization opportunities in docs/lighthouse-results.md.

Copy link
Member

@robertky robertky left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The Lighthouse results are now documented for Discover and Album Detail on both desktop and mobile. The report also explains the layout-shift fix and notes the remaining image optimization opportunities outside the project’s control. CI, including the PostgreSQL integration tests, passes, and I found no remaining issues. Approved.

@robertky robertky merged commit 2e829f5 into main Nov 12, 2026
3 checks passed
@rachelks rachelks deleted the feat/23-album-cover-images branch November 12, 2026 20:56
Sign in to join this conversation on GitHub.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Album cover images
2 participants